package com.check.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.check.dao.DictionaryDao;
import com.check.pojo.Dictionary;

@Repository("dictionaryDao")
public class DictionaryDaoImpl extends BaseSqlMapDao implements DictionaryDao{

	
	public List<Dictionary> findByCode(String d_code) {
		
		return getSqlMapClientTemplate().queryForList("Dictionary.findByCode",d_code);
	}
	
	public List<Dictionary> findAll() {
		
		return getSqlMapClientTemplate().queryForList("Dictionary.findAll");
	}

}
